﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage1 : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        lblStatus.Text = DateTime.Now.ToLongTimeString();
        if (Session["id"] != null)
        {
            lblStatus.Text = "当前用户：" + Session["id"];
           
        }
        else
        {
            lblStatus.Text = "当前状态：未登录";
        }
    }
   
}
